package us.mifeng.basicvp.network.api

import io.reactivex.rxjava3.core.Observable
import retrofit2.http.Body
import retrofit2.http.Field
import retrofit2.http.POST
import us.mifeng.basicvp.model.Login
import us.mifeng.basicvp.model.LoginResult
import us.mifeng.basicvp.network.BaseResponse

interface UserApi {

    @POST("getUserInfo")
    fun getUserInfo(): Observable<BaseResponse<LoginResult>>

    @POST("login")
    fun login( @Body login: Login ): Observable<BaseResponse<LoginResult>>
}    